import Request from '@utils/request';

const request = new Request('/api/order/');

/**
 * 
 */
export const couponGetByGoods = (body) => {
  return request.get(`Coupon/GetByGoods`, body);
};

/**
 * 领取优惠券
 */
export const couponReceive = (body) => {
  return request.post(`Coupon/Receive`, body);
};

/**
 * 我的优惠券
 */
export const couponGetList = (params) => {
  return request.get(`Coupon/GetList`, params);
};